package main

import "fmt"

func main() {
	m := make(map[string][]string)
	//需求，以省份为key，城市为value，存下来
	m["beijing"] = []string{"朝阳", "海淀", "昌平"}
	m["shandong"] = []string{"济南", "威海", "青岛"}
	m["jiangsu"] = []string{"南京", "南通", "苏州"}
	fmt.Println(m)

	// 查询江苏的第二个城市
	fmt.Println(m["jiangsu"][1])
	for shenfen, chengshi := range m {
		for _, chengshi2 := range chengshi {
			fmt.Println(shenfen, chengshi2)
		}
	}
}
